<style>
    li .left-list-op { display: none; }
    li:hover .left-list-op { display: block; }
    .shenfen_check { border: 1px solid #d9d9d9; }
    .shenfen_check li { cursor: default; position: relative; height: 25px; float: left; margin: 8px 10px; background-color: #fff; border: 1px solid #d9d9d9; padding: 0px 20px; line-height: 25px; }
    .shenfen_check li .ui-dialog-close { display: none; position: absolute; top: 0; right: 0; height: 25px; font-size: 21px; font-weight: bold; line-height: 1; color: #000; text-shadow: 0 1px 0 #FFF; opacity: .2; filter: alpha(opacity=20); cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; }
    .shenfen_check li:hover .ui-dialog-close { display: block; }
</style>
<form name="reported_rules_form" novalidate>
    <table width="100%" class="mt10" ng-controller="ReportedRulesController">
        <tbody>
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top"><em class="c-red">*&nbsp;</em>客户确认模式：</td>
            <td class="pt16">
                <div style="display:block">
                    <div class="radio-list">
                        <div class="radio">
                            <input type="radio" id="radio1" value="0" ng-model="data.consumerConfirmPattern.paraValue">
                            <label for="radio1">带看模式</label>
                        </div>
                        <div class="radio">
                            <input type="radio" id="radio2" value="1" ng-model="data.consumerConfirmPattern.paraValue">
                            <label for="radio2">推荐模式</label>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top"><em class="c-red">*</em>保护期提醒：</td>
            <td class="pt12">
                <div ng-if="data.consumerConfirmPattern.paraValue == 0">
                    到期前<input type="number" class="input-text mr5 w40" required min="0"
                              ng-model="data.protectionPattern.days_remind">
                    天提醒带看/到访，<input type="number" class="input-text mr5 w40" required min="0"
                                    ng-model="data.protectionPattern.dkdays_remind">天提醒认购/签约
                </div>

                <div ng-if="data.consumerConfirmPattern.paraValue == 1">
                    <div class="pb5">
                        <label class="radio mr10">
                            <input type="radio" value="0" ng-model="data.protectionPattern.paravalue">
                            <span>两段式模式</span>
                        </label>
                        到期前
                        <input type="number" class="input-text mr5 w40" required min="0"
                               ng-model="data.protectionPattern.days_remind">
                        天提醒带看/到访，
                        <input type="number" class="input-text mr5 w40" required min="0"
                               ng-model="data.protectionPattern.dkdays_remind">天提醒认购/签约
                    </div>

                    <div>
                        <label class="radio mr10">
                            <input type="radio" value="1"
                                   ng-model="data.protectionPattern.paravalue">
                            <span>一段式模式</span>
                        </label>
                        到期前
                        <input type="number" class="input-text mr5 w40" required min="0"
                               ng-model="data.protectionPattern.days_bak_remind">天提醒认购/签约
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top"><em class="c-red">*</em>推荐与带看时间间隔：</td>
            <td class="pt12">
                <input type="number" class="input-text mr5 w60" ng-model="data.bbdkTime.value" required min="0">
                分钟
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top"><em class="c-red">*</em>每日推荐客户上限：</td>
            <td class="pt12">
                <input type="number" class="input-text mr5 w60" ng-model="data.recommendLimit.value" required min="0">
                个（空表示无限制）
            </td>
        </tr>        
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top">是否启用指定销售员：</td>
            <td class="pt12">
                <div class="switch fl switch-on" id="reported_autocheck">
                    <span class="switch-text">开</span>
                    <span class="switch-white"></span>
                </div>
            </td>
        </tr>
        </tbody>
        
        
        <tbody ng-show="data.isEnableSeller.value==1">
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top"></td>
            <td class="pt12">
                <div  class="border clearfix relative">
                    <div class="left-list">
                        <div class="clearfix bgcf7 border-bottom"><span class="fl f14 lh30 text-indent ml10">经纪人身份：</span></div>
                        <div id="type_tree">
                            <div  class="text-center" ng-if="loading">加载中。。。</div>
                            <div  class="text-center" ng-if="!loading && (!identifications || identifications.length==0)">无记录，请到【渠道身份管理】中设置。
                            </div>

                            <ul ng-if="!loading && (identifications && identifications.length>0)">
                                <li class="clearfix" ng-repeat="item in identifications"
                                    ng-class="{selected:item.myParamValueId === curIdentification.myParamValueId}"
                                    ng-click="selectIdentification(item)">
                                    <span class="left-list-text">{{item.Text}}</span>
                                
                                </li>
                            </ul>
                        </div>
                    </div>

                    <div class="left-list-bd" style="left:269px"></div>
                    <div style="float: left;position: relative;width: 602px">
                        <div class="clearfix bgcf7 border-bottom"><span class="fl f14 lh30 text-indent ml10">置业顾问：</span></div>
                            
                        <div class="clearfix ml10 mt10 mb10 mr10" ng-if="curIdentification && curIdentification.teams.length>0">
                            <div ng-repeat="item in curIdentification.teams">
                                <div>
                                    <span class="checkbox">
                                        <input type="checkbox" id="teams_{{item.s_sales_teamId}}"
                                               ng-model="item.selected" ng-change="checkTeam(item)"/>
                                        <label for="teams_{{item.s_sales_teamId}}">{{item.sales_team_name}}</label>
                                    </span>
                                </div>
                                
                                <div class="ml25" >
                                    <span class="checkbox mr10" ng-repeat="itemUser in item.users">
                                        <input type="checkbox" id="user_{{itemUser.s_userId}}"
                                               ng-model="itemUser.selected" ng-change=""/>
                                        <label for="user_{{itemUser.s_userId}}">{{itemUser.user_name}}</label>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="text-center" ng-if="!curIdentification">
                            请选择经纪人身份
                        </div>
                        <div class="text-center" ng-if="curIdentification && curIdentification.teams.length==0">
                            没有销售团队和销售员记录，请到移动销售中设置。
                        </div>
                                                
                        
                    </div>
                    
                </div>
            </td>
        </tr>

        </tbody>       

        
        <tbody>
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top">新客户提醒短信：</td>
            <td class="pt12">
                <div class="switch fl switch-on" id="reported_messgecheck">
                    <span class="switch-text">开</span>
                    <span class="switch-white"></span>
                </div>
            </td>
        </tr>
        </tbody>
        
        
        <tbody ng-show="data.customerRegRemind.IsEnable==1">
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top">接收手机号：</td>
            <td class="pt12">
                <div class="sheet">
                    <table width="100%">
                        <thead>
                        <tr>
                            <th height="34">序号</th>
                            <th>手机号码</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody ng-if="!loading && (!data.customerRegRemind.Mobiles || data.customerRegRemind.Mobiles.length==0)">
                        <tr height="60">
                            <td colspan="10">查询条件无数据</td>
                        </tr>
                        </tbody>
                        <tbody id="tbl_mobile">
                        <tr ng-repeat="mobile in data.customerRegRemind.Mobiles track by $index">
                            <td width="60" height="34">{{$index+1}}</td>
                            <td>{{mobile}}</td>
                            <td width="100"><a href="javascript:;" class="ta-c permission p-500302-07"
                                               data-permission="500302-07" ng-click="delTel(mobile,$index)"><i
                                    class="icon-op icon-op-del"></i></a></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <a href="javascript:;" data-permission="500302-05" class="c-orange f14 block mt5 permission p-500302-05"
                   id="add_tel" ng-click="addTel()">
                    <i class="ui-icon icon-add1"></i>添加手机号
                </a>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w150 pt16" valign="top">发送时间段：</td>
            <td class="pt12">
                <!--<input type="text" class="input-text input-time w150 fl" readonly="" value="">-->
                <!--<span class="fl lh30">&nbsp;&nbsp;-&nbsp;&nbsp;</span>-->
                <!--<input type="text" class="input-text input-time w150 fl" readonly="" value="">-->
                <select ng-model="startTimeHour">
                    <option ng-repeat="item in hours">{{item}}</option>
                </select>
                <select ng-model="startTimeMinute">
                    <option ng-repeat="item in minutes">{{item}}</option>
                </select>
                至
                <select ng-model="endTimeHour">
                    <option ng-repeat="item in hours">{{item}}</option>
                </select>
                <select ng-model="endTimeMinute">
                    <option ng-repeat="item in minutes">{{item}}</option>
                </select>
            </td>
        </tr>
        </tbody>
        <tbody>
        <tr>
            <td colspan="2" class="pt12">
                <button type="submit" class="btn fr permission p-500302-06" ng-click="save()">保存设置
                </button>
            </td>
        </tr>
        </tbody>
    </table>
</form>


